import service from '@/utils/request'

const ActivityApi = {
  // ----------------推广规则-----------------
  listActivity:function(data){
    return service.get('activity/page', {params:data})
  },
  addActivity:function(data){
    return service.post('activity', data)
  },
  editActivity:function(data){
    return service.put('activity', data)
  },
  updateActivityState:function(data){
    return service.put('activity/updateActivityState', data)
  },
  deleteActivity:function(data){
    return service.put('activity/delete', data)
  },
  activityList(data){
    return service.get('activity/listIdName', {params:data})
  },
  getActivity(data){
    return service.get('activity', {params:data})
  },
  
}

export default ActivityApi